package correct.day8;

import java.util.Scanner;

public class Test1 {

    public static int bfs(int x, int y) {
        if(x %  y == 0) {
            return y;
        }
        return bfs(y, x % y);
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        int x = in.nextInt();
        int y = in.nextInt();

        int a = x;
        int b = y;
        int c = a % b;
        while((a % b) != 0) {
            c = a % b;
            a = b;
            b = c;
        }

        System.out.println(x*y/b);
    }
}
